package com.city.repository.report;

import com.city.domain.report.CtPart;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

/**
 * @Author: 李顺时
 * @Description:
 * @Date: Create in 15:13 2018/9/7
 * @Modified By:
 * */

@Repository
public interface CtPartRepository extends JpaRepository<CtPart , Integer> {

    @Query(value = "select * from ct_part where part_code =?1",nativeQuery = true)
    CtPart findPartByCode(String partCode);
}
